package com.easytopit.factory;

public class StudentFactory {
	public static Student createStudent(int age) {
		if (age>10) {
			return new MiddleStudent();
		} else {

			return new Student();
		}
	}
}
